
package com.work.constants.view;

import com.vaadin.server.ThemeResource;
import com.work.jaxb.menu.XmlRootMenu;
import com.work.util.JaxbUtils;

public class ComponentsSources {
	public static final String ICON_PATH = "../sources/img/";

	public static final ThemeResource ICON_USER 	= new ThemeResource(ICON_PATH + "user.png");
	public static final ThemeResource ICON_LOGO 	= new ThemeResource(ICON_PATH + "logo.png");
	public static final ThemeResource ICON_LOGIN 	= new ThemeResource(ICON_PATH + "login.png");
	public static final ThemeResource ICON_LOGOUT 	= new ThemeResource(ICON_PATH + "logout.png");
	public static final ThemeResource ICON_OVERTIME 	= new ThemeResource(ICON_PATH + "logout.png");
	public static final ThemeResource ICON_WORKTIME 	= new ThemeResource(ICON_PATH + "logout.png");
	public static final ThemeResource ICON_MONTH 	= new ThemeResource(ICON_PATH + "month.png");
	public static final ThemeResource ICON_SUM 		= new ThemeResource(ICON_PATH + "sum.png");
	public static final ThemeResource ICON_EDIT 	= new ThemeResource(ICON_PATH + "edit.png");
	public static final ThemeResource ICON_REPORT 	= new ThemeResource(ICON_PATH + "generuj_raport.png");

	public static final String MIME_TYPE_PDF = "application/pdf";

	public static XmlRootMenu rootMenu = JaxbUtils.convertXmlToJava("menu.xml", XmlRootMenu.class, "menu.xsd");
}
